
<div class="row">
  <div class="col-sm-10 col-sm-push-1">
    <form class="form form-horizontal" [formGroup]="govForm" >
      <input type="hidden" class="form-control" placeholder="行政区划代码" id="government_add_code" formControlName="regionCode" name="regionCode">
      <div class="one-form-header"></div>
      <div class="one-form-body">
        <div class="row">
          <div class="col-sm-4 col-lg-3">
            <ul id="gov_add_ZTree" class="ztree" style="max-height: 275px"></ul>
          </div>
          <div class="col-sm-8 col-lg-7">
            <div class="form-group">
              <label for="government_add_name" class="col-sm-3 control-label"><span style="color: red;">*</span> 行政区划:</label>
              <div class="col-sm-9">
                <input type="text" class="form-control" placeholder="行政区划名称" id="government_add_name" readonly required formControlName="regionName" name="regionName">
                <div *ngIf="formErrors.regionName" class="has-error">
                  <label class="control-label"><i class="fa fa-times-circle-o"></i>{{formErrors.regionName}} </label>
                </div>
              </div>
            </div>
            <div class="form-group">
              <label for="government_add_governmentName" class="col-sm-3 control-label"><span style="color: red;">*</span> 政府机构名称:</label>
              <div class="col-sm-9">
                <input type="text" class="form-control" placeholder="政府机构名称" id="government_add_governmentName" required formControlName="name" name="name">
                <div *ngIf="formErrors.name" class="has-error">
                  <label class="control-label"><i class="fa fa-times-circle-o"></i>{{formErrors.name}} </label>
                </div>
              </div>
            </div>
            <div class="form-group">
              <label for="government_add_phone" class="col-sm-3 control-label">联系电话:</label>
              <div class="col-sm-9">
                <input type="text" class="form-control" placeholder="联系电话" id="government_add_phone" formControlName="phone" name="phone">
                <div *ngIf="formErrors.phone" class="has-error">
                  <label class="control-label"><i class="fa fa-times-circle-o"></i>{{formErrors.phone}} </label>
                </div>
              </div>
            </div>
            <div class="form-group">
              <label for="government_add_comment" class="col-sm-3 control-label">备注:</label>
              <div class="col-sm-9">
                <input type="text" class="form-control" placeholder="说明" id="government_add_comment" formControlName="remark" name="remark">
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-3 control-label">是否有效:</label>
              <div class="col-sm-9" >
                <div class="row">
                  <div class="col-xs-4">
                    <input type="radio" name="isValid" id="government_add_valid" value="1" formControlName="isValid">
                    <label for="government_add_valid">
                      有效
                    </label>
                  </div>
                  <div class="col-xs-4">
                    <input type="radio" name="isValid" id="government_add_invalid" value="0" formControlName="isValid">
                    <label for="government_add_invalid">
                      无效
                    </label>
                  </div>
                </div>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-3 control-label">是否禁用:</label>
              <div class="col-sm-9" >
                <div class="row">
                  <div class="col-xs-4">
                    <input type="radio" name="isDisable" id="government_add_used" value="0" formControlName="isDisable">
                    <label for="government_add_used">
                      启用
                    </label>
                  </div>
                  <div class="col-xs-4">
                    <input type="radio" name="isDisable" id="government_add_unused" value="1" formControlName="isDisable">
                    <label for="government_add_unused">
                      禁用
                    </label>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="one-form-footer">
        <div class="row">
          <div class="col-lg-10 col-lg-pull-0">
            <div class="pull-right">
              <button class="btn btn-default" type="reset" (click)="cancelGovAdd()">取消</button>
              <button class="btn btn-success" type="button" [disabled]="govForm.invalid" (click)="onSubmit()">提交</button>
            </div>
          </div>
        </div>
      </div>
    </form>
  </div>
</div>
